package com.lc.pianostudent.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.lc.pianostudent.R;
import com.zcx.helper.dialog.AppDialog;

/**
 * Created by Administrator on 2017/8/12.
 */

public abstract class FinishDialog extends AppDialog {
    private int layoutResId;
    public FinishDialog(Context context, int layoutResId ) {

        super(context, R.style.TradeDialog);
        this.layoutResId = layoutResId;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(layoutResId);

        Window window = this.getWindow();
        WindowManager.LayoutParams lp = window.getAttributes();
        window .setGravity( Gravity.CENTER);
        lp.dimAmount = 0f;
        window .setAttributes(lp);


    }




}
